import service from "./request";

//获取验证码
export const getYzm = (phone) => {
  return service({
    method: "post",
    url: "/get/code",
    data:{
        tel: phone
    }
  })
};

//验证验证码
export const verificationYzm = (data) => {
  return service({
    method: "post",
    url: "/user/authentication",
    data:{
      userName: data.phone,
      passWord:data.password,
      validCode: data.code
    }
  })
};